using System;
using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using UnityEngine;
using UnityEngine.PlayerLoop;

public class Skill1Mage : MonoBehaviour
{
    // Start is called before the first frame update
    private int damage;
    private float t = 0;

    private void Awake()
    {
        damage = SkillManager.Instance.SkillListMage.items[0].damage;
        Destroy(gameObject,5f);
    }

  

    private void Update()
    {
        t += Time.deltaTime;
        if (t >= 1)
        {
            SkillManager.Instance.CalucateDamage(transform.position,damage,2.5f);
            SkillManager.Instance.CalucateSlow(transform.position,2.5f);
            t = 0;
        }
    }
}
